#include "stdafx.h"
#include "Track48.h"

unsigned short Track48::GetTrackNumber()
{
	if(DI161.Isset())
	{
		return DI161;
	}
	return 0;
}

void Track48::SetTrackNumber(unsigned short p_TrackNumber)
{
	DI161 = p_TrackNumber;
	if(p_TrackNumber!=0)
	{
		DI161.Set();
	}
	else
	{
		DI161.Unset();
	}
}

bool Track48::IsDeleteMessage()
{
	return (DI170.Isset() && (DI170.Tre==1));
}

void Track48::SetAsDeleteMessage()
{
	DI170.Tre = 1;
	DI170.Set();
}
